package xyz.jangle.design.strategy;

public class AppMain7 {

	public static void main(String[] args) {
		ConcreteStrategyA strategyA = new ConcreteStrategyA();	
		Context context = new Context(strategyA);		// 注入策略A
		context.lookAlgorithm();
		System.out.println("-------------");
		context.setStrategy(new ConcreteStrategyB());	// 注入策略B
		context.lookAlgorithm();

	}

}
